


%{
#include <stdio.h>
#include <string.h>
#include "node.h"
#define YYSTYPE *

extern char* yytext;

void yyerror( const char *str ) {
  fprintf( stderr ,"error: %s\n", str );
  return;
}

int yywrap() {
  return 1;
}

%}



%%

#include ".h"

int main( void ) {
  root = 0;
  current = 0;
  yyparse();
  //print_tree( root, 2 );
  serialize( root );
  return 0;
}

